@charset "utf-8";
/**
 * Created by kroyo on 2018/03/23
 * datalist-detail  列表数据详情
 */


@import 'common/mixincommon';


.btn{
    width: auto;
    min-width: 100px;
    padding: 0 12px;
}


.nodata-line{
    width: 100%;
    height: 80px;
    line-height: 80px;
    color: $sc;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}


//单选按钮组
.radio-wrap{
    display: inline-block;
    input{
        display: none;
    }
    label{
        cursor: pointer;
        font-size: 14px;
        color: $s6;
        vertical-align:middle; 
        @include transitions(.4s);
    }
    .check{
        position: relative;
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-right:10px; 
        vertical-align:-2px; 
        &:after{
            position: absolute;
            top:25%;
            left: 25%;
            display: block;
            content: '';
            width: 50%;
            height: 50%;
            background-color: transparent;
            @include borradius(50%);
            @include transitions(.4s);
        }
        &:before{
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            content: '';
            width: 100%;
            height: 100%;
            border: 1px solid $borcolor;
            @include borradius(50%);
            box-sizing: border-box;
            @include transitions(.4s);
        }
    }
    &:hover{
        label{
            color: $acolor;
        }
        .check:before{
            border-color:$acolor;
        }
    }
    input:checked~label{
        color: $acolor;
        .check{
            &:after{
                background-color: $acolor;
            }
            &:before{
                border-color:$acolor;
            }
        }
    }
}



.main-right{
    padding: 0;
    .contentbg{
        padding: 30px;
    }
}



.tab-view{
    display: none;
    margin-bottom: 20px;
}


//项目状态  view
.status-view{
    display: block;
    padding: 22px 30px;
    margin-top: 20px;
    border: 1px solid $se;
    .view-left{
        display: inline-block;
        @include textoverflow;
        vertical-align: middle;
        .status{
            color: $acolor;
            font-size: 14px;
        }
        .text{
            color: $s9;
            font-size: 12px;
            a{
                color: $acolor;
            }
        }
    }
    .view-right{
        float: right;
        height: 30px;
        font-size: 0;
        margin-top: 5px;
        .btn{
            margin-left: 20px;
            &:first-child{
                margin-left: 0;
            }
        }
        span{
            display: inline-block;
            width: auto;
            line-height: 30px;
            color: $s6;
            font-size: 12px;
        }
        .timer{
            color: $red;
        }
    }
}


// status 对其问题
//项目状态
.status-middle{
    font-size: 0;
    .view-left{
        min-width: 260px;
        white-space: normal;
        .status{
            margin-bottom: 5px;
        }
    }
    .view-right{
        float: none;
        display: inline-block;
        max-width: 370px;
        vertical-align: middle;
        .btn{
            float: right;
        }
    }
}



//里程碑
.milestone-view{
    padding: 30px 30px 20px;
    margin-top: 30px;
    border: 1px solid $se;
}
.view-flow{
    position: relative;
    .chart{
        position: relative;
        float: left;
        width: calc(100%/3);
        text-align: center;
        div{
            width: 18px;
            height: 18px;
            @include borradius(50%);
            background-color: $borcolor;
            margin:0 auto 5px; 
            &:before{
                position: absolute;
                top: 7px;
                left: calc((18px - 100%)/2);
                display: block;
                content: '';
                width: calc(100% - 18px);
                height: 4px;
                background-color: $borcolor;
            }
        }
        span{
            font-size: 14px;
            color: #999999;
        }
    }
    .chart:first-of-type div:before{
        display: none;
    } 
    .chart.under div{
        border: 5px solid $acolor;
        background-color: transparent;
        &:before{
            background-color: $acolor;
        }
    }
    .chart.active{
        div{
            border:none;
            background: url(../img/list/icon-gou.png) no-repeat center;
            background-color: $acolor;
            &:before{
                background-color: $acolor;
            }
        }
    } 
}
//.view-flow{
//  position: relative;
//  padding-left: 40px;
//  .chart{
//      position: relative;
//      float: left;
//      width: calc(100%/3);
//      text-align: right;
//      .dot{
//          width: 18px;
//          height: 18px;
//          @include borradius(50%);
//          background-color: $borcolor;
//          margin:0 auto 5px; 
//          &:before{
//              position: absolute;
//              top: 7px;
//              left: 0;
//              display: block;
//              content: '';
////              width: calc((100% - 18px)/2);
//              width: calc(100% - 18px);
//              height: 4px;
//              background-color: $borcolor;
//          }
//          &:after{
//              position: absolute;
//              top: 7px;
//              right: 0;
//              display: block;
////              display: none;
//              content: '';
//              width: calc((100% - 18px)/2);
//              height: 4px;
//              background-color: $borcolor;
//          }
//      }
//      span{
//          font-size: 14px;
//          color: #999999;
//      }
//  }
//  .dot-wrapper{
//      display: inline-block;
//      width: auto;
//      text-align: center;
//  }
//  .chart:first-of-type{
//      position: absolute;
//      left: 40px;
//      width: auto !important;
//      .dot{
//          &:before,&:after{
//              display: none;
//          }
//      }
//  } 
//  .chart:last-of-type{
////      position: absolute;
//      right: 10px;
////      width: auto !important;
//      .dot{
//          &:after{
//              display: none;
//          }
//      }
//  }
//  .chart.under{
//      .dot{
//          border: 5px solid $acolor;
//          background-color: transparent;
//          &:before{
//              background-color: $acolor;
//          }
//      }
//  } 
//  .chart.active{
//      .dot{
//          border:none;
//          background: url(../img/list/icon-gou.png) no-repeat center;
//          background-color: $acolor;
//          &:before,&:after{
//              background-color: $acolor;
//          }
//      }
//  } 
//}
.view-text{
    margin-top: 40px;
    .item{
        margin-bottom: 18px;
        &:first-of-type{
            .left:before{
                display: none;
            }
        }
    }
    //标记当前日志
    .item.active{
        .left{
            width: 16px;
            background:url(../img/list/icon-tlable.png) no-repeat center;
            @include borradius(initial);
            margin-right: 24px;
        }
    }
    .left{
        position: relative;
        float: left;
        width: 10px;
        height: 10px;
        @include borradius(50%);
        background-color: $sc;
        margin-right: 30px;
        margin-top: 1px;
        &:before{
            position: absolute;
            top: -40px;
            left: 4px;
            display: block;
            content: '';
            width: 2px;
            height: 40px;
            background-color: $sc;
        }
    }
    .right{
        float: left;
        font-size: 0;
        .text{
            line-height: 12px;
            color: $s6;
            font-size: 12px;
        }
        .time{
            margin-bottom: 8px;
        }
    }
}





//数据详情
.detailview{
    margin-top: 20px;
    .view-header{
        position: relative;
        font-size: 0;
        padding-bottom: 30px;
        border-bottom: 1px solid $se;
        h2{
            height: 18px;
            line-height: 18px;
            color: $s3;
            font-size: 18px;
            font-weight: normal;
            margin-bottom: 30px;
            padding-right: 100px;
            @include textoverflow;
        }
        p{
            display: inline-block;
            width: 50%;
            color: $s6;
            font-size: 14px;
            line-height: 14px;
        }
    }
    .data-item{
        margin-top: 20px;
        margin-bottom: 40px;
        h4{
            color: $s3;
            font-size: 16px;
            font-weight: normal;
        }
        .num{
            display: inline-block;
            width: 30px;
            height: 30px;
            line-height: 30px;
            @include borradius(50%);
            color: $sf;
            text-align: center;
            background-color: $acolor;
            margin-right: 10px;
        }
        .item-li{
            line-height: 14px;
            font-size: 0;
            margin-top: 30px;
            margin-left: 20px;
        }
        .label{
            display: inline-block;
            width: 120px;
            color: $s6;
            font-size: 14px;
            vertical-align: top;
        }
        .text{
            display: inline-block;
            width: auto;
            max-width: 500px;
            color: $s3;
            font-size: 14px;
            @include breakall;
        }
        img{
            width: 100px;
            height: 100px;
            margin-top: 20px;
        }
    }
    .btn-wrapper{
        width: 100%;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 20px;
        .btn{
            width: 160px;
            height: 40px;
            line-height: 40px;
            border: none;
            font-size: 14px;
        }
    }
}






.site-window{
    .container .win-content{
        width: 580px;
        margin-left: 330px;
    }
    .item-right{
        display: inline-block;
        width: 380px;
    }
    .form-item{
        .inputtext{
            width: 380px;
        }
    }
}
.win-addlinks{
    .form-item{
        .label{
            width: 120px;
        }
    }
}
